#ifndef _TOOLS_CPP_
#define _TOOLS_CPP_

#include <string>
using std::string;

namespace tools
{
	string getFileName(string fn)
	{
		int pos = fn.find_last_of("\\") + 1;
		int ext = fn.find_last_of(".");
		int len = ext - pos;
		return fn.substr(pos, len);
	}
}

#endif